{include file='yxworker/w_head'}

    <header class="i_header">
        <div class="s_head" style=" overflow: hidden; ">
            <img src="{$fans['avatar']}">
        </div>
        <h3>{php echo empty($teamname)?'':$teamname.": ";}{$myworker['username']}</h3>
        <h3>{php echo empty($shopname)?$theme['jubf']:$shopname;}{$shenfen}</h3>
    </header> 

    <div class="s_menu ui-flex ui-cont-sa">
        <a href="javascript:;">
            <dl>
                <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_06.png"></dt>
                <dd>
                    <p>已支付</p>
                    <p>{$my['paycounttoday']}/{$my['paycount']}</p>
                </dd>
            </dl>
        </a>
        <a href="javascript:;">
            <dl>
                <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_04.png"></dt>
                <dd>
                    <p>未支付</p>
                    <p>{$my['unpaidcounttoday']}/{$my['unpaidcount']}</p>
                </dd>
            </dl>
        </a>
        <a href="javascript:;">
            <dl>
                <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_08.png"></dt>
                <dd>
                    <p>直销</p>
                    <p>{$my['directcounttoday']}/{$my['directcount']}</p>
                </dd>
            </dl>
        </a>
        {if $my['level'] < 3 && $config['isrank']==1}
        <a href="javascript:;">
            <dl>
                <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_10.png"></dt>
                <dd>
                    <p>{$teamtips}</p>
                    <p>{$teampaycounttoday}/{$teampaycount}</p>
                </dd>
            </dl>
        </a>
        {/if}
    </div>

    {if $config['ishexiao']==1 && $my['level'] < 3 && $config['isrank']==1}
        <div class="s_items s_bg">
            <div class="s_title">
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                商家今日定单排行
            </div>
            <table class="s_table">
                <thead>
                    <tr>
                        <td>联盟商</td>
                        <td>转发</td>
                        <td>浏览量</td>
                        <td>今日/总定单</td>
                    </tr>
                </thead>
                <tbody>
                    {loop $company_all $item}
                        <tr>
                            <td>{php echo mb_substr($item['name'],0,6,'utf-8');}</td>
                            <td>{$item['forward']}</td>
                            <td>{$item['scansum']}</td>
                            <td>{$item['today']}/{$item['allpay']}</td>
                        </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
    {/if}
    {if count($team_all)>1 && ($my['level'] < 3 || $config['isrank']==1)}
    <div class="s_items s_bg">
        <div class="s_title">
            <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
            今日各团队战绩{if $noworker>0}【无员工信息:<span style="color: #ff0000">{$noworker}</span>】{/if}
        </div>
            <table class="s_table">
                <thead>
                    <tr>
                        <td>队名</td>
                        <td>转发</td>
                        <td>浏览量</td>
                        <td>今日/总定单</td>
                    </tr>
                </thead>
                <tbody>
                    {loop $team_all $index $item}
                        <tr>
                            <td>{$item['name']}</td>
                            <td>{$item['forward']}</td>
                            <td>{$item['scansum']}</td>
                            <td>{$item['today']}/{$item['allpay']}</td>
                        </tr>
                    {/loop}
                </tbody>
            </table>

    </div>
    {/if}

    {if $my['level'] < 3 }
        {loop $team_all $teamitem}
            <div class="s_items s_bg">
                <div class="s_title">
                    <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                    <span style="color: #ff0000">{$teamitem['name']}</span>今日定单排行【<span style="color: #ff0000">{$teamitem['today']}</span>/{$teamitem['allpay']}】
                </div>
                <table class="s_table">
                    <thead>
                        <tr>
                            <td>姓名</td>
                            <td>转发</td>
                            <td>浏览量</td>
                            <td>今日/总直销</td>
                            <td>今日/总定单</td>
                        </tr>
                    </thead>
                    <tbody>
                        {loop $teamitem['list'] $item}
                            <tr>
                                <td>{php echo empty($item['username'])?mb_substr($item['nickname'],0,4,'utf-8'):$item['username'];}</td>
                                <td>{$item['forward']}</td>
                                <td>{$item['scansum']}</td>
                                <td>{$item['directcounttoday']}/{$item['directcount']}</td>
                                <td>{$item['paycounttoday']}/{$item['paycount']}</td>
                            </tr>
                        {/loop}
                    </tbody>
                </table>
            </div>
        {/loop}
    {elseif $config['isrank']==1}
        <div class="s_items s_bg">
            <div class="s_title">
                <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                团队今日定单排行
            </div>
            <table class="s_table">
                <thead>
                    <tr>
                        <td>姓名</td>
                        <td>转发</td>
                        <td>浏览量</td>
                        <td>今日/总直销</td>
                        <td>今日/总定单</td>
                    </tr>
                </thead>
                <tbody>
                    {loop $team_list $item}
                        <tr>
                            <td>{php echo empty($item['username'])?mb_substr($item['nickname'],0,4,'utf-8'):$item['username'];}</td>
                            <td>{$item['forward']}</td>
                            <td>{$item['scansum']}</td>
                            <td>{$item['directcounttoday']}/{$item['directcount']}</td>
                            <td>{$item['paycounttoday']}/{$item['paycount']}</td>
                        </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
    {/if}
    {if intval($config['todaytime'])>0}
        <table class="s_table">
            <thead>
                <tr >
                    <td style="background:#f8f8f8;  text-align: center;line-height: 0.5rem;">
                    今日数字为:从{php echo date("Y/m/d H:i:s",$todaytime);}到现在的成交统计
                    </td>
                </tr>
            </thead>
        </table>
    {/if}

{include file='yxworker/w_foot'}
